iT邦幫忙

0

C - Executable 及 Library 的差別

#c
  • 分享至 

  • xImage
  •  

前言

最近在玩 C language
想著以後要是 web 不做了的話,可以去做跟 Linux 有關的
還有 Jetbrains 全家桶真的好用XDDD

Executable & Library

這是在自己做練習的時候,從 IDE 內新增專案的時候看到的
https://ithelp.ithome.com.tw/upload/images/20230922/20118878DbYpYS8Og2.png
想說到底有什麼區別,找了一下找到 Stack overflow 上有人解說

If you're building a self standing program, you'll want an executable.

But you might be building a library of functions/classes that provide utility to someone else or another project. In that case you'll want other programs to be able to link against the library to access those functions/classes, either statically - to compile the library into their project - or dynamically to fetch stuff the library at runtime.

大意就是 Executable 是做唯一個獨立的執行檔使用的
Library 是在做一些獨立的函式庫才會使用到

參考

https://stackoverflow.com/questions/67671247/clion-c-executable-vs-c-library


圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言